#include <QtGui/QApplication>
#include "qmlapplicationviewer.h"

#include "MyXmppClient.h"

#include "ima/minversemousearea.h"
#include "qmlxmppclient.h"

Q_DECL_EXPORT int main(int argc, char *argv[])
{
    qmlRegisterType<MInverseMouseArea>("InvMA", 1, 0, "InverseMouseArea");
    qmlRegisterType<QMLXmppClient>("QmlXmppClient", 1, 0, "XmppClient" );

    QScopedPointer<QApplication> app(createApplication(argc, argv));

    QScopedPointer<MyXmppClient> meegIM( new MyXmppClient() );
    meegIM->initXmppClient();
    meegIM->showFullScreen();

    EventFilter ef;
    meegIM->installEventFilter(&ef);

    return app->exec();
}

